package com.ellricky.baselib.ui

import androidx.fragment.app.FragmentManager
import androidx.fragment.app.FragmentTransaction
import com.andr.common.ui.activity.BaseToolBarActivity
import com.andr.common.ui.mvp.BasePresenter
import com.ellricky.baselib.R

class RecentlyCourseActivity : BaseToolBarActivity<Void, BasePresenter<Void>>() {

    override fun getContentLayout(): Int {
        return R.layout.base_activity_recently_course
    }

    override fun initUIView() {
        super.initUIView()

        mTvTitle.text = getText(R.string.base_recently_course)

        val fragmentManager: FragmentManager = supportFragmentManager
        val transaction: FragmentTransaction = fragmentManager.beginTransaction()
        val leftFragment = ActiveDocClassFragment.newInstance()
        transaction.add(R.id.content, leftFragment, "Recently")
        transaction.commit()
    }
}